package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Cmf_User_Product;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface Cmf_User_ProductMapper {
    int insert(Cmf_User_Product record);

    List<Cmf_User_Product> selectAll();

    List<Cmf_User_Product> selectByUserId(Long userId);

    List<Cmf_User_Product> selectByUserIdAndProduct(@Param("userId") Long userId, @Param("productId") Long productId);

    void updateByNum(Cmf_User_Product cmf_user_product);

    void deleteByUserIdAndProduct(Cmf_User_Product cmf_user_product);
}